<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>活动管理</title>

	<meta name="viewport" content="width=device-width, initial-scale=1.0" />

	<!--basic styles-->

	<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" />
	<link href="__PUBLIC__/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link href="__PUBLIC__/css/animate.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__PUBLIC__/css/font-awesome.min.css" />
	<!-- 分页样式 -->
	<link rel="stylesheet" href="__PUBLIC__/css/page.css" />

	<style type="text/css" title="currentStyle">
		@import "__PUBLIC__/css/TableTools.css";
	</style>

	<!--[if IE 7]>
	<link rel="stylesheet" href="__PUBLIC__/css/font-awesome-ie7.min.css" />
	<![endif]-->

	<!--page specific plugin styles-->

	<!--bbc styles-->

	<link rel="stylesheet" href="__PUBLIC__/css/bbc.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/bbc-responsive.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/bbc-skins.min.css" />
	<script src="__PUBLIC__/js/My97DatePicker/WdatePicker.js"></script>
	<!--[if lte IE 8]>
	<link rel="stylesheet" href="__PUBLIC__/css/bbc-ie.min.css" />
	<![endif]-->

	<!--inline styles if any-->
</head>

<body>
<!--导航-->
<include file="Public:navbar" />

<div class="container-fluid" id="main-container">
	<a id="menu-toggler" href="#">
		<span></span>
	</a>

	<!--边栏-->
	<include file="Public:sidebar" />

	<div id="main-content" class="clearfix">
		<div id="breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="icon-home"></i>
					Home
					<span class="divider">
								<i class="icon-angle-right"></i>
							</span>
				</li>
				<li class="active">活动列表</li>
			</ul><!--.breadcrumb-->
		</div>

		<div id="page-content" class="clearfix">
			<div class="page-header position-relative">
				<div style="text-align:left;width:100%;">
					<a type="button" href="{:U(GROUP_NAME.'/Shop/addhuodong')}" class="btn btn-info btn-small no-border"> <i class="icon-plus icon-white"></i>添加活动</a>
				</div>
			</div>

			<div class="row-fluid">
				<!--PAGE CONTENT BEGINS HERE-->
				<form id="table-searchbar" method="POST" class="form-inline well well-small">
					<div class="row-fluid">
						&nbsp;&nbsp;开始日期
						<input type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="input-small" value="{:$_POST['be_logtime']}" name="be_logtime">
						&nbsp;&nbsp;截止日期
						<input type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="input-small" value="{:$_POST['en_logtime']}" name="en_logtime">
						<button type="submit" class="btn btn-small no-border" id="btn-query" type="button"><i class="icon-search"></i>查询</button>
					</div>
				</form>

				<div class="row-fluid">
					<table id="table_report" class="table table-striped table-bordered table-hover">
						<thead>
						<tr>
							<th>活动编号</th>
							<th>活动名称</th>
							<th>满足金额</th>
							<th>奖励资产</th>
							<th>奖励矿机</th>
							<th>奖励矿机个数</th>
							<th>开始时间</th>
							<th>结束时间</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						<foreach name="list" item="v">
							<tr>
								<td>{$v.id}</td>
								<td>{$v.name}</td>
								<td>{$v.num}</td>
								<td>{$v.zszc}</td>
								<td>{$v.kjname}</td>
								<td>{$v.kj_num}</td>
								<td>{$v.addtime|date='Y-m-d H:i:s',###}</td>
								<td>{$v.endtime|date='Y-m-d H:i:s',###}</td>


								<td>

										<a href="{:U(GROUP_NAME .'/Shop/edithd',array('id'=>$v['id']))}"><font color="red">修改</font></a>
									|
										<a href="{:U(GROUP_NAME .'/Shop/delhd',array('id'=>$v['id']))}" onclick="if(!confirm('删除后不可恢复，确认要删除吗？')){return false;}"><font color="#4169e1">删除</font></a>


								</td>
							</tr>
						</foreach>
						<tr>
							<td colspan="10" style="text-align:center;">
								<div class="page">{$page}</div>
							</td>
						</tr>

						</tbody>
					</table>
				</div>
				<!--PAGE CONTENT ENDS HERE-->
			</div><!--/row-->
		</div><!--/#page-content-->
	</div><!--/#main-content-->
</div><!--/.fluid-container#main-container-->

<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
	<i class="icon-double-angle-up icon-only bigger-110"></i>
</a>

<!--basic scripts-->
<script src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>

<script src="__PUBLIC__/js/bootstrap.min.js"></script>

<!--page specific plugin scripts-->
<script src="__PUBLIC__/js/bootbox.min.js"></script>
<script src="__PUBLIC__/js/jquery.dataTables.min.js"></script>
<script src="__PUBLIC__/js/jquery.dataTables.bootstrap.js"></script>
<script src="__PUBLIC__/js/TableTools.min.js"></script>
<!--bbc scripts-->

<script src="__PUBLIC__/js/bbc-elements.min.js"></script>
<script src="__PUBLIC__/js/bbc.min.js"></script>

<script src="__PUBLIC__/js/bootstrap.notification.js"></script>
<script src="__PUBLIC__/js/jquery.easing.1.3.js"></script>
<!--inline scripts related to this page-->

<script type="text/javascript">
    $(function() {

        $('#clear-log').click(function(){
            bootbox.confirm("确认要清空日志吗?", function(result) {
                if(result) {
                    var url = '{:U(GROUP_NAME .'/Log/deleteLog')}';
                    window.location = url;
                }
            });
        });

    });
</script>
</body>
</html>
